package gateway

import "errors"

func ConvertResponse(data any, err error) *CommonResp {
	return NewResponse(data, err, Ok)
}

func ParamsCheckErrorResponse() *CommonResp {
	return NewResponse(nil, errors.New("params error"), ParamError)
}
